package com.pzhu.service.impl;

import com.pzhu.dao.BookDao;
import com.pzhu.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/**
 * @author Yancy xiao
 * @create 2023-04-17 8:44
 */

@Service
public class BookServiceImpl implements BookService {

    //BookService bookService = new BookServiceImpl();
    @Autowired//引用类型注入
    @Qualifier("bookDao")//引用类型注入
    private BookDao bookDao;

    public void save() {
        System.out.println("dadwadwa111111111");
        bookDao.save();
    }
}
